{% extends "index.html" %}
{% block content %}
<h3>Posts en la categoría {{ cat_name }}</h3>
{% if not posts or not posts|length %}
	<h2>No hay entradas</h2>
{% else %}

{% for post in posts %}
<div class="post">
	<h2 class="title"><a href="/post/{{ post.permalink }}">{{ post.title }}</a></h2>
	<div class="entry">
		<h3>{{ post.excerpt }}</h3>
		{{ post.content|linebreaks }}
	</div>
	<p class="meta">Publicado el {{post.published|date:"d/m/Y H:i"}} &nbsp;|&nbsp; {% for cat in post.categories %}
		<a href="/category/{{ cat.category_url}}">{{ cat.category_name }}</a>
		{% endfor %} &nbsp;|&nbsp; <a href="/post/{{ post.permalink }}/#comments">{{ post.num_comments }} comentario{{ post.num_comments|pluralize }}</a>{% if user %} | <a href="/admin/posts/edit?id={{ post.key }}" class="edit">Edit</a> {% endif %}
		</p>
</div>


	{% endfor %}
	{% if navigation.previous or navigation.next %}
	<div id="nav_post">
		{% if previous %}
			<a href="{{navigation.previous}}" class="nav">Siguientes >></a>
		{% endif %}

		{% if next %}	
				<a href="{{navigation.next}}" class="nav"><< Anteriores</a>
		{% endif %}	
	
	
	
	</div>
	
	{% endif %}
{% endif %}

{% block comments %}

{% endblock %}


{% endblock %}
